package pers.wwz.study.wechatserver.feign.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Map;

@Data
@ApiModel("订阅消息请求")
public class SendSubscribeMgRequest {

    @ApiModelProperty(value = "接收者（用户）的 openid",required = true,example = "oAh0K5QS8GsKkfTPt58jmJ5xxFPU")
    private String touser;

    @ApiModelProperty(value = "所需下发的订阅模板id",required = true,example = "CrTky0NQmHK1zlwF7PIARgJo3H52h-zt8jJkZw5acuM")
    private String template_id;

    @ApiModelProperty(value = "点击模板卡片后的跳转页面，仅限本小程序内的页面。支持带参数,（示例index?foo=bar）。该字段不填则模板无跳转。",required = true,example = "pages/view-report/view-report")
    private String page;

    @ApiModelProperty(value = "跳转小程序类型：developer为开发版；trial为体验版；formal为正式版；默认为正式版",required = true)
    private String miniprogram_state;

    @ApiModelProperty(value = "进入小程序查看”的语言类型，支持zh_CN(简体中文)、en_US(英文)、zh_HK(繁体中文)、zh_TW(繁体中文)，默认为zh_CN",required = true)
    private String lang;

    @ApiModelProperty(value = "模板内容",required = true,example = "")
    private Map<String,Object> data;
}
